package com.xwn.bean;

public class Student {
    /** 主键 */
    private String uuid;
    /** 姓名 */
    private String name;
    /** 性别 */
    private Integer sex;

    public Student() {
        super();
    }

    public Student(String uuid, String name, Integer sex) {
        this.uuid = uuid;
        this.name = name;
        this.sex = sex;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Student{" +
                "uuid='" + uuid + '\'' +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || this.getClass() != o.getClass()) {
            return false;
        }
        Student stu = (Student)o;
        return stu.equals(((Student) o).getUuid());
    }

    @Override
    public int hashCode() {
        return uuid.hashCode();
    }
}
